<!--
 * @Author: Rachel 943701297@qq.com
 * @Date: 2022-07-11 11:04:25
 * @LastEditors: Rachel 943701297@qq.com
 * @LastEditTime: 2022-07-25 21:02:50
 * @FilePath: \Vue_Codec:\Users\94370\Desktop\面向工作学习\笔记\learning-notes\html_css_Code\11-移动Web开发\flex.html
 * @Description: 
 * 
 * Copyright (c) 2022 by Rachel 943701297@qq.com, All Rights Reserved. 
-->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>flex</title>
    <style>
      .main {
        display: flex;
        width: 800px;
        height: 500px;
        justify-content: center;
        align-items: center;
        /* justify-content: flex-end; */
        background-color: #666;
      }
      .main div {
        background-color: orange;
        border: 1px solid #666;
        width: 96px;
        height: 96px;
      }
      .flex1 {
        flex: 1;
      }
      .flex2 {
        flex: 6;
        display: flex;
        flex-direction: column;
      }
      .flex3 {
        flex: 2;
      }
    </style>
  </head>
  <body>
    <div class="main">
      <div class="flex1">1</div>
      <div class="flex2">2</div>
      <div class="flex3">3</div>
    </div>
  </body>
</html>
